<?php
namespace SimpleFactory\Operation;

include_once 'AbstractOperation.php';
include_once 'InterfaceOperation.php';

use SimpleFactory\ {AbstractOperation, InterfaceOperation};
/** 加法运算类 继承父类 实现接口 */
class OperationAdd extends AbstractOperation implements InterfaceOperation
{
    public function getResult(): int
    {
        return $this->numberA + $this->numberB;
    }
}